package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.heima.article.pojo.ApArticle;
import com.heima.model.article.dtos.ArticleDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 文章信息表，存储已发布的文章 Mapper 接口
 * </p>
 *
 * @author HM
 * @since 2023-03-22
 */
public interface ApArticleMapper extends BaseMapper<ApArticle> {

    List<ArticleDto> findByPage(Page<ApArticle> ipage);

    ArticleDto findById(@Param("articleId") Long articleId);
}
